package com.bjsxt.fall;

import org.springframework.http.ResponseEntity;

public class RpcFallbackConfig {

    public static  ResponseEntity<String> rpcFallback(String type , Throwable e){
        System.out.println("原来的方法发送了异常，具体的异常是:"+e.getMessage());
        return ResponseEntity.ok("发送了java 异常，我们进行了回退") ;
    }
}
